package com.kgc.student.studentuserservice.service;

import com.kgc.student.bean.Student;
import com.kgc.student.service.StudentService;
import com.kgc.student.studentuserservice.mapper.StudentMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-10-06 20:59
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    StudentMapper studentMapper;

    @Override
    public List<Student> selectStudent() {
        return studentMapper.selectByExample(null);
    }

    @Override
    public Integer addStudent(Student student) {

        return studentMapper.insert(student);
    }
}
